import React, { Component } from 'react';

export default class Modal extends Component {
    render() {
        const {onClick,toHideModal,title} = this.props
        return (
            <div className="modalBar pf width100 height100 f14">
                <div className="modal_body border_4 scale">
                    <div className="paddingtb border_bottom tc">{title}</div>
                    <div style={{height:40,lineHeight:'40px'}}>
                        <button className="width50 border_right colorlv bkr_Tr borderno"
                            onClick = {onClick}
                        >确定</button>
                        <button className="width50 bkr_Tr borderno"
                            onClick = {toHideModal}
                        >取消</button>
                    </div>
                </div>
            </div>
        );
    }
}
